package com.google.code.p2pxmppclient.notifyserver;

import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * 
 * @author eliosh
 * @version $Rev$
 * @lastautorcommit $Author$
 * @lastdatecommit $Date$
 */
public class OfflineMessage {
	private String message;
	private Date time;
	
	private static final SimpleDateFormat sdf = new SimpleDateFormat("H:mm:ss");
	
	public OfflineMessage(String msg){
		this.message = msg;
		this.time = new Date();
	}

	@Override
	public String toString() {
		return sdf.format(time) + ": " + message;
	}

}
